<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/function.tld" prefix="f"%>

<!DOCTYPE p PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<fmt:setBundle basename="bundles.railroadOrderBundle" />

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><fmt:message key="route.edit"></fmt:message></title>
<script type="text/javascript" src="/layout/jsc/onlydigits.js"></script>
</head>

<c:set var="id_route" value="${sessionScope['id_route']}"></c:set>
<c:if test="${not empty id_route}">
	<c:set var="ticket">
		<f:routeTickets id_route="${id_route}" />
	</c:set>

	<h2 align="center"><fmt:message key="route.edit"></fmt:message></h2>

	<form method="POST" action="/pages/route_edit.do">
	<table width="50%" align="center">
		<tr>
			<td align="left"><a href="/index.do"><fmt:message
				key="index.title.site"></fmt:message></a></td>
		</tr>
		<tr>
			<table align="center">
				<tbody>
					<tr>
						<td><fmt:message key="route.tickets"></fmt:message></td>
						<td><input type="text" name="tickets" value="${ticket}"
							onkeypress="onlyDigits(event);" /></td>
						<td>
						<button type="submit"><fmt:message key="order.confirm"></fmt:message></button>
						</td>
					</tr>
				</tbody>
			</table>
		</tr>
	</table>
	</form>
</c:if>

<body>

</body>
</html>